<#include "admin/home.html"/>
<#macro main>
<h3 class="field-title">编辑用户</h3>
<div class="m-form">
    <form id="dataForm">
        <input type="hidden" name="id" value="${vo.id}">
        <div class="formitm">
            <label class="lab">用户名：</label>
            <div class="ipt">
                <input type="text" name="loginName" placeholder="请输入用户名" value="${vo.loginName!}" required/>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">姓名：</label>
            <div class="ipt">
                <input type="text" name="name" placeholder="请输入姓名" value="${vo.name!}" required/>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">手机：</label>
            <div class="ipt">
                <input type="text" name="mobile" placeholder="请输入手机号码" value="${vo.mobile!}" required/>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">邮箱：</label>
            <div class="ipt">
                <input type="text" name="email" value="${vo.email!}" placeholder="请输入邮箱" />
            </div>
        </div>
        <div class="formitm">
            <label class="lab">启用：</label>
            <div class="ipt">
                <label class="iSwitch">
                    <input type="checkbox" name="enabled" <#if vo.enabled>checked="checked"</#if> value="1">
                    <i></i>
                </label>
            </div>
        </div>
        <div class="formitm formitm-1">
            <span class="btn" onclick="doSubmit()">提交</span>
        </div>
    </form>
</div>

</#macro>

<#macro tplJs>
    <script type="text/javascript" src="${resCtx}/js/admin/user.js"></script>
</#macro>